<body>
<?php include 'header.phtml';?>

</div>
<div class="AppContent GridView"><div id="MarketingStickyDetailsAndRelationsBreadCrumbView" class="StickyDetailsAndRelationsBreadCrumbView BreadCrumbView"><div class="breadcrumbs">
<a href="<?php echo $this->basePath();?>/marketing">Marketing</a> &#47; <a href="/zurmo/app/index.php/campaigns/default/list">Campaigns</a> &#47; <span>10% discount for new clients</span></div><div id="stickyListLoadingArea"><span class="loading"></span></div></div><div id="CampaignDetailsAndRelationsView" class="single-column DetailsAndRelationsView ConfigurableMetadataView MetadataView"><div class="GridView"><div id="CampaignDetailsView" class="SecuredDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView"><h1><span class="truncated-title"><span class="ellipsis-content">10% discount for new clients - Campaign</span></span></h1><div class="view-toolbar-container clearfix"><nav class="pillbox clearfix"><div id="ListViewDetailsActionMenu" class="default-button">
<a class="button-action-trigger"><i class="icon-details"></i><span class="button-label">Details</span><i class="icon-trigger"></i></a><ul class="button-actions open-on-left flyout-action"><li><div id="CampaignDetailsOverlayView" class="overlay-view SecuredDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView"><div class="campaign-description"><strong>Send On: 11/23/13 8:28 AM</strong><strong>Subject: Special Offer: 10% Discount for new clients</strong></div><p class="after-form-details-content">Last Modified 11/23/13 8:34 AM&#160;by&#160;Super User&#160;|&#160;Created On 11/23/13 8:34 AM&#160;by&#160;Super User&#160;|&#160;Owner <a href="/zurmo/app/index.php/users/default/details?id=1">Super User</a>&#160;|&#160;Who can read and write Everyone</p></div></li></ul></div><div id="ListViewOptionsActionMenu" class="default-button">
<a class="button-action-trigger"><i class="icon-edit"></i><span class="button-label">Options</span><i class="icon-trigger"></i></a><ul class="button-actions"><li id="EditLinkActionElement"><a id="EditLinkActionElement-1-yt2" href="<?php echo $this->basePath();?>/marketing/marketing/campaignedit">Edit</a></li><li><a id="CampaignDeleteLinkActionElement-1-yt1" href="/zurmo/app/index.php/campaigns/default/delete?id=1">Delete</a></li></ul></div></nav></div></div><div class="ModelRelationsSecuredPortletFrameView SecuredPortletFrameView PortletFrameView MetadataView"><div class="juiportlet-columns"> 
<ul class="juiportlet-columns-CampaignDetailsAndRelationsViewLeftBottomView juiportlet-widget-column1 juiportlet-column juiportlet-column-no-split">
<li class="juiportlet-widget CampaignOverallMetricsView type-campaigns" id="CampaignDetailsAndRelationsViewLeftBottomView_6">
<div class="juiportlet-widget-head">
<h3>Campaign Dashboard</h3><ul class="options-menu edit-portlet-menu nav">
<li class="parent last"><a href="javascript:void(0);"><span></span></a>
<ul>
<li class="last"><a class="edit" id="CampaignDetailsAndRelationsViewLeftBottomView_6_EditLink" href="#"><span>Configure Portlet</span></a></li>
</ul>
</li>
</ul>
</div>
<div class="juiportlet-widget-content"  >
<div id="CampaignOverallMetricsView" class="MarketingMetricsView ConfigurableMetadataView MetadataView"><div class="left-column full-width metrics-details campaign-metrics-container"><h3>What is going on with this campaign?</h3><div>10/24/13 - 11/23/13</div><form id="marketing-metrics-group-by-configuration-form-CampaignDetailsAndRelationsViewLeftBottomView_6" action="/zurmo/app/index.php/campaigns/default/details?id=1&amp;stickyOffset=0" method="post">
<div style="display:none"><input type="hidden" value="f8ad6475c27bdcde81768d55847a9b1151b34c3e" name="YII_CSRF_TOKEN" /></div><div id="marketing-metrics-group-by-configuration-form-CampaignDetailsAndRelationsViewLeftBottomView_6_groupBy_area" class="mini-pillbox"><th><label for="ytMarketingOverallMetricsForm_groupBy">Group By</label></th><td colspan="1"><input type="hidden" value="" name="marketingMetricsGroupByNotUsedName" id="marketingMetricsGroupByNotUsedName" /><div class="pills"><a data-value="Day" class="marketing-metrics-group-by-configuration-form-CampaignDetailsAndRelationsViewLeftBottomView_6marketingMetricsGroupByLink" href="#">Day</a><a data-value="Week" class="marketing-metrics-group-by-configuration-form-CampaignDetailsAndRelationsViewLeftBottomView_6marketingMetricsGroupByLink active" href="#">Week</a><a data-value="Month" class="marketing-metrics-group-by-configuration-form-CampaignDetailsAndRelationsViewLeftBottomView_6marketingMetricsGroupByLink" href="#">Month</a></div></td></div></form></div><div class="graph-container clearfix"><div class="half marketing-graph"><h3>Overall Campaign Performance</h3><div id='chartContainerCampaignDetailsAndRelationsViewLeftBottomView_6OverallListPerformance' style='width: 100%; height: 400px;'></div></div><div class="half marketing-graph"><h3>Emails in this Campaign</h3><div id='chartContainerCampaignDetailsAndRelationsViewLeftBottomView_6EmailsInThisList' style='width: 100%; height: 400px;'></div></div></div></div>
</div>
</li>
<li class="juiportlet-widget CampaignItemsRelatedListView type-campaigns" id="CampaignDetailsAndRelationsViewLeftBottomView_7">
<div class="juiportlet-widget-head">
<h3>Email Recipients</h3>
</div>
<div class="juiportlet-widget-content"  >
<div class="CampaignItemsRelatedListView RelatedListView ListView ModelView ConfigurableMetadataView MetadataView"><div class="campaign-items-container"><div class="cgrid-view type-campaigns" id="list-viewCampaignDetailsAndRelationsViewLeftBottomView_7">

<span class="empty"><span class="icon-empty"></span>Email recipients will appear here once the campaign begins sending out</span>
<div class="pager horizontal"><ul id="yw1" class="yiiPager"><li class="refresh hidden"><a href="/zurmo/app/index.php/campaigns/defaultPortlet/details?id=1&amp;stickyOffset=0&amp;portletId=7&amp;redirectUrl=%2Fzurmo%2Fapp%2Findex.php%2Fcampaigns%2Fdefault%2Fdetails%3Fid%3D1%26stickyOffset%3D0">refresh</a></li></ul></div><div class="list-preloader"><span class="z-spinner"></span></div><div class="keys" style="display:none" title="/zurmo/app/index.php/campaigns/default/details?id=1&amp;stickyOffset=0"></div>
</div>
</div></div>
</div>
</li>
</ul>
</div></div></div></div></div><div id="FlashMessageView"><div id = "FlashMessageBar"></div></div></div><div id="ModalContainerView"><div id="modalContainer"></div></div><div id="ModalGameNotificationContainerView"></div><div id="GameCoinContainerView"></div><div id="FooterView"><a href="http://www.zurmo.com" id="credit-link" class="clearfix"><span>Copyright &#169; Zurmo Inc., 2013. All rights reserved.</span></a><div class="ui-chooser"><a class="icon-mobile" href="/zurmo/app/index.php/zurmo/default/userInterface?userInterface=Mobile"><span>Show Mobile</span></a><a class="icon-desktop active" href="/zurmo/app/index.php/zurmo/default/userInterface?userInterface=Desktop"><span>Show Full</span></a></div></div></div></div></div><script type="text/javascript">
/*<![CDATA[*/
function closeGamificationDashboard(){
                           $('#UserGameDashboardView').remove();
                           $('body').removeClass('gd-dashboard-active');
                           $('#header-game-dashboard-link').html('∂').toggleClass('highlighted');
                       }
jQuery(function($) {

                    jQuery("body").ajaxComplete(
                        function(event, request, options)
                        {
                            if (request.responseText == "sessionTimeout")
                            {
                                $.cookie("sessionTimeoutCookie", 1,
                                        {
                                            expires : 1,
                                            path:  "/"
                                        });
                                window.location.reload(true);
                            }
                        }
                    );
                
$('#go-to-dashboard-link, #close-game-notification-link').click(function(event){
                           event.preventDefault();
                           $('#game-notification').fadeOut(300, function(){
                               $('#game-notification').remove();
                           });
                       });
                       $('.gd-dashboard-active').on('click', function(){
                           if($('#UserGameDashboardView').length){
                               closeGamificationDashboard();
                           }
                           return false;
                       });
$('body').on('click', '#header-game-dashboard-link', function(){jQuery.ajax({'beforeSend':function(){
                    if($("#UserGameDashboardView").length){
                        closeGamificationDashboard();
                        return false;
                    }
                    $("body").addClass("gd-dashboard-active");
                    $("#header-game-dashboard-link").html("‰").toggleClass("highlighted");
                },'success':function(data){$("#FooterView").after(data);},'url':'/zurmo/app/index.php/users/default/gameDashboard?id=1','cache':false});return false;});
  $(".nav li").hover(
    function () {
      if ($(this).hasClass("parent")) {
        $(this).addClass("over");
      }
    },
    function () {
      $(this).removeClass("over");
    }
  );

$("#globalSearchScope").bind("multiselectclick", function(event, ui){
                            if ($("#globalSearchScope").multiselect("widget").find(":checkbox:checked").length == 0)
                            {
                                $("#globalSearchScope").multiselect("widget").find(":checkbox").each(function(){
                                    if (this.value == "All" && !this.checked)
                                    {
                                        this.click();
                                    }
                                });
                            }
                            if (ui.value == "All" && ui.checked)
                            {
                                $("#globalSearchScope").multiselect("widget").find(":checkbox").each(function(){
                                    if (this.value != "All" && this.checked)
                                    {
                                        this.click();
                                    }
                                });
                            }
                            else if (ui.value != "All" && ui.checked)
                            {
                                $("#globalSearchScope").multiselect("widget").find(":checkbox").each(function(){
                                    if (this.value == "All" && this.checked)
                                    {
                                        this.click();
                                    }
                                });
                            }
                        });
                       
$('#globalSearchScope').multiselect({'selectedText':'','noneSelectedText':'','header':false,'position':{'my':'right top','at':'right bottom'}}); $(this).setupCheckboxStyling($('#globalSearchScope').parent())
$("#globalSearchInput").bind("focus", function(event, ui){
                            $("#globalSearchInput").autocomplete("option", "source", "/zurmo/app/index.php/zurmo/default/globalSearchAutoComplete?" + $.param($("#globalSearchScope").serializeArray()));
                        });
                       
jQuery('#globalSearchInput').autocomplete({'select': function(event, ui) {if (ui.item.href.length > 0){window.location = ui.item.href;} return false;},'search': function(event, ui) { $(this).makeOrRemoveTogglableSpinner(true, "#app-search") },'open': function(event, ui) { $(this).makeOrRemoveTogglableSpinner(false, "#app-search") },'position':{'my':'right top','at':'right bottom'},'source':'/zurmo/app/index.php/zurmo/default/globalSearchAutoComplete'});
 $("#globalSearchInput").data( "autocomplete" )._renderItem = function( ul, item ) {
                            return $( "<li></li>" ).data( "item.autocomplete", item )
                                    .append( "<a><span class=" + item.iconClass + "></span><span>" + item.label + "</span></a>" )
                                    .appendTo( ul );
                        };
$('body').on('click', '#yt0', function(){jQuery.ajax({'beforeSend':function(){
                jQuery('#modalContainer').html('');
                $(this).makeLargeLoadingSpinner(true, '#modalContainer');
                window.scrollTo(0, 0);
                jQuery('#modalContainer').dialog({
                    'title' : 'Create Task',
                    'autoOpen' : true,
                    'modal' : true,
                    'position' : 'center top+25',
                    'dialogClass' : 'task-dialog',
                    'height' : 'auto',
                    'open': function( event, ui )  { jQuery('#modalContainer').parent().addClass('openingModal'); },
                    'close': function( event, ui ) { jQuery('#modalContainer').parent().removeClass('openingModal');
                                                     $('#modalContainer').dialog('destroy');
                                                     
                                                     }
                });
                return true;
            },'url':'/zurmo/app/index.php/tasks/default/modalCreate?modalId=modalContainer','cache':false,'success':function(html){jQuery("#modalContainer").html(html)}});return false;});
$(document).ready(function () { jQuery.ajax({'type':'GET','url':'/zurmo/app/index.php/campaigns/default/renderStickyListBreadCrumbContent?stickyKey=CampaignsSearchView&stickyOffset=0&stickyModelId=1','cache':false,'data':jQuery(this).parents("form").serialize(),'success':function(html){jQuery("#stickyListLoadingArea").html(html)}});});
jQuery('body').on('click','#CampaignDeleteLinkActionElement-1-yt1',function(){return confirm('Are you sure you want to delete this campaign?');});

                    $(function() {
                        $('.truncated-title').ThreeDots({ max_rows:1 });
                    });

            $('.marketing-metrics-group-by-configuration-form-CampaignDetailsAndRelationsViewLeftBottomView_6marketingMetricsGroupByLink').click(function()
                {
                    jQuery.ajax({'type':'POST','data':$("#marketing-metrics-group-by-configuration-form-CampaignDetailsAndRelationsViewLeftBottomView_6").serialize() + '&MarketingOverallMetricsForm[groupBy]=' + $(this).data("value"),'url':'/zurmo/app/index.php/home/defaultPortlet/modalConfigSave?id=1&stickyOffset=0&portletId=6&uniqueLayoutId=CampaignDetailsAndRelationsViewLeftBottomView&portletParams%5BrelationModuleId%5D=campaigns&portletParams%5BrelationModelId%5D=1','beforeSend':function(){$(this).makeSmallLoadingSpinner(true, ".graph-container");
                                $("#MarketingDashboardView").addClass("loading");},'complete':function(XMLHttpRequest, textStatus){juiPortlets.refresh();},'cache':false,'success':function(html){jQuery("#CampaignDetailsAndRelationsViewLeftBottomView_6").html(html)}});
                    return false;
                }
            );
            
var chartData_CampaignDetailsAndRelationsViewLeftBottomView_6OverallListPerformance = [{'uniqueClickThroughRate':0,'uniqueOpenRate':0,'displayLabel':'Oct 21','dateBalloonLabel':'Week of Oct 21'},{'uniqueClickThroughRate':0,'uniqueOpenRate':0,'displayLabel':'Oct 28','dateBalloonLabel':'Week of Oct 28'},{'uniqueClickThroughRate':0,'uniqueOpenRate':0,'displayLabel':'Nov 4','dateBalloonLabel':'Week of Nov 4'},{'uniqueClickThroughRate':0,'uniqueOpenRate':0,'displayLabel':'Nov 11','dateBalloonLabel':'Week of Nov 11'},{'uniqueClickThroughRate':0,'uniqueOpenRate':0,'displayLabel':'Nov 18','dateBalloonLabel':'Week of Nov 18'}]; $(document).ready(function () {     
                        var chart           = new AmCharts.AmSerialChart();
                        chart.dataProvider  = chartData_CampaignDetailsAndRelationsViewLeftBottomView_6OverallListPerformance;
                        chart.categoryField = 'displayLabel';
                chart.fontFamily = "Arial";chart.color = '#545454';chart.lineColor = "#545454";chart.colors = ["#6C8092", "#933140", "#447799", "#44BBCC", "#4A3970", "#91A1DC",
                                   "#ABBC42", "#C70151", "#8C1C03", "#A67417", "#BDBF7E", "#FFAA07",
                                   "#274F73", "#D92949", "#29A649", "#46201C", "#D92525", "#7AA61B",
                                   "#F28B0C", "#8F6181", "#605F53", "#65818C", "#E96151", "#366774",
                                   "#70995C", "#592519", "#33664D", "#142933", "#F2E530", "#D94625"];chart.usePrefixes = 1;var graph0        = new AmCharts.AmGraph();
                                     window.g1              = graph0;
                                     graph0.valueField = 'uniqueClickThroughRate';
                                     graph0.type       = 'column';graph0.type = 'line';graph0.bullet = 'round';graph0.colorField = 'color';graph0.lineAlpha = 1;graph0.title = 'Unique CTR';graph0.balloonText = 'CTR: [[value]]%';chart.addGraph(graph0);var graph1        = new AmCharts.AmGraph();
                                     window.g1              = graph1;
                                     graph1.valueField = 'uniqueOpenRate';
                                     graph1.type       = 'column';graph1.type = 'line';graph1.bullet = 'round';graph1.colorField = 'color';graph1.lineAlpha = 1;graph1.title = 'Unique Open Rate';graph1.balloonText = 'Open Rate: [[value]]%';chart.addGraph(graph1);var categoryAxis = chart.categoryAxis;categoryAxis.title = '';categoryAxis.unitPosition = 'left';categoryAxis.unit = '';categoryAxis.usePrefixes = 1;categoryAxis.inside = 0;categoryAxis.dashLength = 2;categoryAxis.gridAlpha = 0;categoryAxis.autoGridCount = 'false';var valueAxis = new AmCharts.ValueAxis();valueAxis.maximum = 100;valueAxis.axisColor = "#545454";valueAxis.gridColor = "#545454";valueAxis.title = '';valueAxis.unitPosition = 'left';valueAxis.unit = '';valueAxis.usePrefixes = 1;valueAxis.minimum = 0;valueAxis.dashLength = 2;chart.addValueAxis(valueAxis);var legend = new AmCharts.AmLegend();legend.borderAlpha = 0.2;legend.valueWidth = 0;legend.horizontalGap = 10;chart.addLegend(legend);chart.write('chartContainerCampaignDetailsAndRelationsViewLeftBottomView_6OverallListPerformance');
                     });
var chartData_CampaignDetailsAndRelationsViewLeftBottomView_6EmailsInThisList = [{'queued':0,'sent':0,'uniqueClicks':0,'uniqueOpens':0,'bounced':0,'optedOut':0,'displayLabel':'Oct 21','dateBalloonLabel':'Week of Oct 21'},{'queued':0,'sent':0,'uniqueClicks':0,'uniqueOpens':0,'bounced':0,'optedOut':0,'displayLabel':'Oct 28','dateBalloonLabel':'Week of Oct 28'},{'queued':0,'sent':0,'uniqueClicks':0,'uniqueOpens':0,'bounced':0,'optedOut':0,'displayLabel':'Nov 4','dateBalloonLabel':'Week of Nov 4'},{'queued':0,'sent':0,'uniqueClicks':0,'uniqueOpens':0,'bounced':0,'optedOut':0,'displayLabel':'Nov 11','dateBalloonLabel':'Week of Nov 11'},{'queued':0,'sent':0,'uniqueClicks':0,'uniqueOpens':0,'bounced':0,'optedOut':0,'displayLabel':'Nov 18','dateBalloonLabel':'Week of Nov 18'}]; $(document).ready(function () {     
                        var chart           = new AmCharts.AmSerialChart();
                        chart.dataProvider  = chartData_CampaignDetailsAndRelationsViewLeftBottomView_6EmailsInThisList;
                        chart.categoryField = 'displayLabel';
                chart.fontFamily = "Arial";chart.color = '#545454';chart.lineColor = "#545454";chart.colors = ["#6C8092", "#933140", "#447799", "#44BBCC", "#4A3970", "#91A1DC",
                                   "#ABBC42", "#C70151", "#8C1C03", "#A67417", "#BDBF7E", "#FFAA07",
                                   "#274F73", "#D92949", "#29A649", "#46201C", "#D92525", "#7AA61B",
                                   "#F28B0C", "#8F6181", "#605F53", "#65818C", "#E96151", "#366774",
                                   "#70995C", "#592519", "#33664D", "#142933", "#F2E530", "#D94625"];chart.usePrefixes = 1;chart.plotAreaBorderColor = '#000000';chart.plotAreaBorderAlpha = 0;var graph0        = new AmCharts.AmGraph();
                                     window.g1              = graph0;
                                     graph0.valueField = 'queued';
                                     graph0.type       = 'column';graph0.balloonText = '[[category]]: [[value]]';graph0.fillAlphas = 1;graph0.cornerRadiusTop = 0;graph0.cornerRadiusBottom = 0;graph0.lineAlpha = 0;graph0.colorField = 'color';graph0.labelText = '[[value]]';graph0.title = 'Queued';graph0.balloonText = 'Queued: [[value]]';chart.addGraph(graph0);var graph1        = new AmCharts.AmGraph();
                                     window.g1              = graph1;
                                     graph1.valueField = 'sent';
                                     graph1.type       = 'column';graph1.balloonText = '[[category]]: [[value]]';graph1.fillAlphas = 1;graph1.cornerRadiusTop = 0;graph1.cornerRadiusBottom = 0;graph1.lineAlpha = 0;graph1.colorField = 'color';graph1.labelText = '[[value]]';graph1.title = 'Sent';graph1.balloonText = 'Sent: [[value]]';chart.addGraph(graph1);var graph2        = new AmCharts.AmGraph();
                                     window.g1              = graph2;
                                     graph2.valueField = 'uniqueOpens';
                                     graph2.type       = 'column';graph2.balloonText = '[[category]]: [[value]]';graph2.fillAlphas = 1;graph2.cornerRadiusTop = 0;graph2.cornerRadiusBottom = 0;graph2.lineAlpha = 0;graph2.colorField = 'color';graph2.labelText = '[[value]]';graph2.title = 'Opened';graph2.balloonText = 'Opened: [[value]]';chart.addGraph(graph2);var graph3        = new AmCharts.AmGraph();
                                     window.g1              = graph3;
                                     graph3.valueField = 'uniqueClicks';
                                     graph3.type       = 'column';graph3.balloonText = '[[category]]: [[value]]';graph3.fillAlphas = 1;graph3.cornerRadiusTop = 0;graph3.cornerRadiusBottom = 0;graph3.lineAlpha = 0;graph3.colorField = 'color';graph3.labelText = '[[value]]';graph3.title = 'Clicked';graph3.balloonText = 'Clicked: [[value]]';chart.addGraph(graph3);var graph4        = new AmCharts.AmGraph();
                                     window.g1              = graph4;
                                     graph4.valueField = 'bounced';
                                     graph4.type       = 'column';graph4.balloonText = '[[category]]: [[value]]';graph4.fillAlphas = 1;graph4.cornerRadiusTop = 0;graph4.cornerRadiusBottom = 0;graph4.lineAlpha = 0;graph4.colorField = 'color';graph4.labelText = '[[value]]';graph4.title = 'Bounced';graph4.balloonText = 'Bounced: [[value]]';chart.addGraph(graph4);var graph5        = new AmCharts.AmGraph();
                                     window.g1              = graph5;
                                     graph5.valueField = 'optedOut';
                                     graph5.type       = 'column';graph5.balloonText = '[[category]]: [[value]]';graph5.fillAlphas = 1;graph5.cornerRadiusTop = 0;graph5.cornerRadiusBottom = 0;graph5.lineAlpha = 0;graph5.colorField = 'color';graph5.labelText = '[[value]]';graph5.title = 'Unsubscribed';graph5.balloonText = 'Unsubscribed: [[value]]';chart.addGraph(graph5);var categoryAxis = chart.categoryAxis;categoryAxis.inside = 0;categoryAxis.title = '';categoryAxis.unitPosition = 'left';categoryAxis.unit = '';categoryAxis.usePrefixes = 1;categoryAxis.dashLength = 2;categoryAxis.gridAlpha = 0;categoryAxis.autoGridCount = 'false';var valueAxis = new AmCharts.ValueAxis();valueAxis.axisColor = "#545454";valueAxis.gridColor = "#545454";valueAxis.minimum = 0;valueAxis.dashLength = 2;valueAxis.stackType = 'regular';valueAxis.title = '';valueAxis.unitPosition = 'left';valueAxis.unit = '';valueAxis.usePrefixes = 1;chart.addValueAxis(valueAxis);var legend = new AmCharts.AmLegend();legend.borderAlpha = 0.2;legend.valueWidth = 0;legend.horizontalGap = 10;chart.addLegend(legend);chart.write('chartContainerCampaignDetailsAndRelationsViewLeftBottomView_6EmailsInThisList');
                     });
jQuery('.drillDownExpandAndLoadLink').unbind('click'); jQuery('.drillDownExpandAndLoadLink').live('click', function(){
    $(this).hide();
    $(this).parent().find('.drillDownCollapseLink').first().show();
    $(this).parentsUntil('tr').parent().next().show();
    var loadDivId = $(this).parentsUntil('tr').parent().addClass('expanded-row').next().find('.drillDownContent').attr('id');
    $.ajax({
        url      : $(this).data('url') + '&page=1',
        type     : 'GET',
        beforeSend : function(){
            $(this).makeLargeLoadingSpinner(true, "#"+loadDivId);
        },
        success  : function(data){
            jQuery('#' + loadDivId).html(data)
        },
        error : function(){
            //todo: error call
        }
    });
});
jQuery('.drillDownExpandLink').unbind('click'); jQuery('.drillDownExpandLink').live('click', function(){
    $(this).hide();
    $(this).parent().find('.drillDownCollapseLink').first().show();
    $(this).parentsUntil('tr').parent().addClass('expanded-row').next().show();
});
jQuery('.drillDownCollapseLink').unbind('click');jQuery('.drillDownCollapseLink').live('click', function(){
    $(this).hide();
    $(this).parent().find('.drillDownExpandLink').first().show();
    $(this).parentsUntil('tr').parent().removeClass('expanded-row').next().hide();
});
jQuery('#list-viewCampaignDetailsAndRelationsViewLeftBottomView_7').yiiGridView({'ajaxUpdate':['list-viewCampaignDetailsAndRelationsViewLeftBottomView_7'],'ajaxVar':'ajax','pagerClass':'pager horizontal','loadingClass':'loading','filterClass':'filters','tableClass':'items','selectableRows':0,'enableHistory':false,'updateSelector':'{page}, {sort}','filterSelector':'{filter}','pageVar':'CampaignItem_page','beforeAjaxUpdate':function(id, options) { $(this).makeSmallLoadingSpinner(true, "#" + id); },'afterAjaxUpdate':function(id, data) {
                        processAjaxSuccessError(id, data);
                    }});
juiPortlets.init('CampaignDetailsAndRelationsViewLeftBottomView','campaigns', '/zurmo/app/index.php/campaigns/defaultPortlet/SaveLayout', 'YII_CSRF_TOKEN', 'f8ad6475c27bdcde81768d55847a9b1151b34c3e', '.juiportlet-columns-CampaignDetailsAndRelationsViewLeftBottomView', '', '', 'This portlet will be removed, ok?');
$('body').on('click', '#CampaignDetailsAndRelationsViewLeftBottomView_6_EditLink', function(){jQuery.ajax({'beforeSend':function(){
                jQuery('#modalContainer').html('');
                $(this).makeLargeLoadingSpinner(true, '#modalContainer');
                window.scrollTo(0, 0);
                jQuery('#modalContainer').dialog({
                    'title' : 'Edit Portlet',
                    'autoOpen' : true,
                    'modal' : true,
                    'position' : 'center top+25',
                    'dialogClass' : '',
                    'height' : 'auto',
                    'open': function( event, ui )  { jQuery('#modalContainer').parent().addClass('openingModal'); },
                    'close': function( event, ui ) { jQuery('#modalContainer').parent().removeClass('openingModal');
                                                     $('#modalContainer').dialog('destroy');
                                                     
                                                     }
                });
                return true;
            },'url':'/zurmo/app/index.php/campaigns/defaultPortlet/ModalConfigEdit?uniqueLayoutId=CampaignDetailsAndRelationsViewLeftBottomView&portletId=6&portletParams%5BrelationModuleId%5D=campaigns&portletParams%5BrelationModelId%5D=1','cache':false,'success':function(html){jQuery("#modalContainer").html(html)}});return false;});

                $('#FlashMessageBar').jnotifyAddMessage(
                {
                    text: 'Campaigns will not run properly until scheduled jobs are set up. Contact your administrator.',
                    permanent: true,
                    showIcon: true,
                }
                );
                
});
/*]]>*/
</script>
</body>